﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using OSS.Core;
using OSS.Domain;
using OSS.Service;

namespace OSS.WebUI.Controllers
{
    public class BatchController : Controller
    {
        // GET: Batch
        public ActionResult Index()
        {
            return View();
        }

        public JsonResult Batchs()
        {
            return Json(Container.Instance.Resolve<IStudyBatchService>().GetAll(), JsonRequestBehavior.AllowGet);
        }

        public JsonResult AddBatch()
        {
            StudyBatch s = new StudyBatch();
            
            return Json(1, JsonRequestBehavior.AllowGet);
        }
    }
}